#ifndef TESTDIALOG_H
#define TESTDIALOG_H

#include <QDialog>
#include "OOReader.h"
#include <QtSql>
#include "choosepaper.h"

namespace Ui {
    class testDialog;
}

class testDialog : public QDialog
{
    Q_OBJECT

public:
    explicit testDialog(QWidget *parent = 0);
    ~testDialog();

private slots:
    void drawTestDoc();
    void on_horizontalScrollBar_valueChanged(int i);
    void on_horizontalScrollBar_sliderPressed();
    void on_horizontalScrollBar_sliderReleased();
    void ShowQuestion(int ShowID);
    void ShowItemAnswer();
    void on_radioButtonA_clicked(bool checked);
    void on_radioButtonB_clicked(bool checked);
    void on_radioButtonC_clicked(bool checked);
    void on_radioButtonD_clicked(bool checked);
    void on_radioButtonE_clicked(bool checked);
    void UpdateItemAnswer(int iAnswer);
    void on_ButtonHandin_clicked();
    void on_ButtonQuit_clicked();

private:
    Ui::testDialog *ui;
    OOReader *Otest;
    PushDoc *forceQuestion_test;
    QSqlQuery *m_testquery;
    int m_iTestAmount;
    bool m_bScrollBarStoped;
    int m_iCurrentTestID;
    int m_iCurrentTestpaperitemID;
    int m_TestPaperID;

};

#endif // TESTDIALOG_H
